package com.zimmor.naiyou.client.controller;

import com.zimmor.entity.ResponseResult;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:zimmor
 * @Date: 2023/3/13 10:24
 * @Description 资源控制器
 * @version: 1.0.0
 */
@RestController
@CrossOrigin
@RequestMapping("/resource")
public class ResourceController {

    /**
     * client的注册
     * @return
     */
    public ResponseResult register() {
        return ResponseResult.success();
    }

    /**
     * client续租
     * @return
     */
    public ResponseResult renew() {
        return ResponseResult.success();
    }

    /**
     * client下线
     * @return
     */
    public ResponseResult shutdown() {
        return ResponseResult.success();
    }
}
